package src

import java.io.Serializable
import java.util.List
import model.Partida
import org.apache.wicket.markup.html.WebPage
import org.uqbar.wicket.xtend.WicketExtensionFactoryMethods
import org.uqbar.wicket.xtend.XLink
import org.uqbar.wicket.xtend.XListView

abstract class VistaElementos<T> extends WebPage implements Serializable {
		extension WicketExtensionFactoryMethods = new WicketExtensionFactoryMethods
		
		@Property var Partida partida
		
	
	new(Partida _partida){
		partida = _partida
		this.addChild(new XLink("home") => [onClick = [| responsePage = new Home(partida)] ] )
		
	}	

	
	def abstract XListView<T> listViewGenerator(List<T> elementos)
	
	

	
}	